Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: DialogBox cannot be used from inside DialogBox
~Wendy Reresaly 3.Dec.03 01:25 PM a Web browser
Domino Designer 6.0.2 Windows 2000


If I understand you problem correctly, you have an event in your form that cancels opening and re-open it with the same form within a dialog box. Right?

If so, then your code would start an infinite loop since QueryOpen is also started when opening dialog box itself :
Open Form (STOP) -> Open Dialog Box (STOP) -> Open Dialog Box (STOP) -> ....

To avoid this, I would add a flag to document within your code :

QueryOpen event:
Dim workspace As New NotesUIWorkspace
Dim contactDoc As NotesDocument
Set contactDoc = Source.Document

If ContactDoc.IsDialog(0) = "1" Then
'OK to open it so in DIalog box and remove flag
Call ContactDoc.RemoveItem("IsDialog")
Continue = True
Else
'Is not in dialog box yet, so cancel opening and open it into dialog box
ContactDoc.IsDialog = "1"
Call workspace.DialogBox ( contactDoc.form(0), True, False, False, False, False, False, "Contact", contactDoc, True, False, True )
Continue = False
End If
End Sub




DialogBox cannot be used from insid... (~Lisa Kiresaber... 3.Dec.03)
. . RE: DialogBox cannot be used from i... (~Wendy Reresaly... 3.Dec.03)
. . . . RE: DialogBox cannot be used from i... (~Lisa Kiresaber... 3.Dec.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS